package com.ysd.lis.controller.qc;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.qc.QcInstrSampleDto;
import com.ysd.lis.request.qc.QcResultConvertRuleDto;
import com.ysd.lis.request.qc.QcResultConvertRuleParam;
import com.ysd.lis.service.qc.QcResultConvertRuleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author pengrongshuai
 * @since 2024-01-29
 */
@Api(tags = "质控结果转换规则")
@RestController
@RequestMapping("/api/qc/qcResultConvertRule")
public class QcResultConvertRuleController extends BaseController {
    @Autowired
    QcResultConvertRuleService qcResultConvertRuleService;

    @ApiOperation("查询")
    @GetMapping("/findConvertRuleList")
    public Result findConvertRuleList(QcResultConvertRuleParam param){
        return qcResultConvertRuleService.findConvertRuleList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateConvertRule")
    public Result saveOrUpdateConvertRule(@RequestBody QcResultConvertRuleDto dto) {
        return qcResultConvertRuleService.saveOrUpdateConvertRule(dto);
    }
    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteConvertRuleList")
    public Result batchDeleteConvertRuleList(@RequestBody QcResultConvertRuleDto dto){
        return  qcResultConvertRuleService.batchDeleteConvertRuleList(dto);
    }
}
